package com.example.neo4jdemo.dao;

import com.example.neo4jdemo.entity.Node;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface NodeDao extends JpaRepository<Node, Long> {

    @Query(value = "select * from node where address = ?1 and is_delete = 1", nativeQuery = true)
    Node findByAddress(String address);
}
